<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.5: http://docutils.sourceforge.net/" />
<title>Director</title>
<link rel="stylesheet" href="doc.css" type="text/css" />
</head>
<body>
<div class="document">
<div class="navigation navigation-header container">
<span class="previous">Previous: <a class="reference" href="scenes.html" title="Scenes">Scenes</a></span><span class="next">Next: <a class="reference" href="layers.html" title="Layers">Layers</a></span><span class="breadcrumbs"><a class="reference" href="index.html" title="Programming Guide">Programming Guide</a> » <a class="reference" href="basic_concepts.html" title="Basic Concepts">Basic Concepts</a> » Director</span></div>
<h1 class="title">Director</h1>

<p>The <a class="reference apilink" href="../api/cocos.director.Director-class.html " title="cocos.director.Director">Director</a> is the component which takes care about going back and forth
between scenes.</p>
<p>The <cite>Director</cite> is a shared (singleton) object. It knows which scene is currently
active, and it handles a stack of scenes to allow things like &quot;scene calls&quot;
(pausing a <a class="reference apilink" href="../api/cocos.scene.Scene-class.html " title="cocos.scene.Scene">Scene</a> and putting it on hold while other enters, and then returning
to the original). The push, replacement or end of the current scene is made by director.</p>
<p>The <cite>Director</cite> is also responsible of initializing the main window.</p>
<div class="navigation navigation-footer container">
<span class="previous">Previous: <a class="reference" href="scenes.html" title="Scenes">Scenes</a></span><span class="next">Next: <a class="reference" href="layers.html" title="Layers">Layers</a></span><span class="breadcrumbs"><a class="reference" href="index.html" title="Programming Guide">Programming Guide</a> » <a class="reference" href="basic_concepts.html" title="Basic Concepts">Basic Concepts</a> » Director</span></div>
</div>
</body>
</html>
